<?
session_start();
//echo'<pre>';print_r($_REQUEST);die;
extract($_REQUEST);
 $body = "<html>";
    $body .= "<body style=\"font-family:Verdana, Verdana, Geneva, sans-serif; font-size:12px; color:#666666;\">\n";
	$body .= '<div> FROM: '.nl2br($username).'<div>';
	$body .= '<div> Email: '.nl2br($email).'<div>';
	$body .= '<div> Mobile Nob.: '.nl2br($mobile).'<div>';
	$body .= '<div> Date of Marrige: '.nl2br($dom).'<div>';
	$body .= '<div> Type of Marrige: '.nl2br($tom).'<div>';
	$body .= '<div> Place of Marrige: '.nl2br($pom).'<div>';
  //  $body .= '<div>'.nl2br($message).'<div>';
    $body .= "</body>";
    $body .= "</html>";
   
    $headers  = "From: Dialshaadi <admin@dialshaadi.com >\r\n";
    $headers .= "Reply-To: admin@dialshaadi.com \r\n";
    $headers .= "Return-Path: admin@dialshaadi.com \r\n";
    $headers .= "X-Mailer: DialShaadi\n";
    $headers .= 'MIME-Version: 1.0' . "\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
   	if( $username != '' && $email != '' && $mobile !='') {
		echo "Thanks for your query.";
		//unset($_SESSION['security_code']);
		@mail($email, 'Dialshaadi Query', $body, $headers);
   } else {
		echo 'Sorry, provide all required data.';
   }
?>